package it.disim.tlp.webreputation.plugin;

import it.disim.tlp.webreputation.aggregatorplugin.AggregatorPlugin;
import it.disim.tlp.webreputation.aggregatorplugin.AggregatorPost;
import it.disim.tlp.webreputation.exceptions.QuotaExceededException;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SimplePlugin implements AggregatorPlugin {
	
	public List<AggregatorPost> getPosts(String resource, Date to) throws QuotaExceededException {
		List<AggregatorPost> sp = new ArrayList<AggregatorPost>();
		AggregatorPost MyPost = new AggregatorPost();
		MyPost.setAuthor("Francesco Basciani");
		MyPost.setDate(new Date());
		MyPost.setSource("fb");
		MyPost.setText("Prova di un post!");
		sp.add(MyPost);
		return sp;
	}
	
	public List<AggregatorPost> getPosts(String resource, Date from, Date to) throws QuotaExceededException {
		List<AggregatorPost> sp = new ArrayList<AggregatorPost>();
		AggregatorPost MyPost = new AggregatorPost();
		MyPost.setAuthor("Francesco Basciani");
		MyPost.setDate(new Date());
		MyPost.setSource("fb");
		MyPost.setText("Prova di un post!");
		sp.add(MyPost);
		return sp;
		
	}
}
